package com.zhuss.excecise.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.excecise.excecise.DetailExceciseAppendVo;
import com.zhuss.excecise.db.dao.gen.ExceciseAppendMapper;
import com.zhuss.excecise.db.entity.ExceciseAppend;

@Mapper
public interface ExceciseAppendDao extends ExceciseAppendMapper {
	
	void create(ExceciseAppend record);
	
	void delete(ExceciseAppend record);
	
	DetailExceciseAppendVo getByType(@Param("type") Integer type, @Param("exceciseId") Long exceciseId, @Param("creatorId") Long creatorId);
	
	List<DetailExceciseAppendVo> listByType(@Param("type") Integer type, @Param("exceciseId") Long exceciseId, @Param("creatorId") Long creatorId);
	
	List<ExceciseAppend> listAll(@Param("area") Integer area);
	
	DetailExceciseAppendVo detail(@Param("exceciseAppendId") Long exceciseAppendId);
}